﻿@model Teamwish.Domain.Models.Userinfo

@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
    <link href="~/Content/login/css/login.css" rel="stylesheet" />   
    <link href="~/Content/X-admin/lib/layui/css/modules/layer/default/layer.css" rel="stylesheet" />
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="~/Content/X-admin/lib/layui/lay/modules/layer.js"></script>

    <script type="text/javascript">
        $(function () {
            $(".name input").focus(function () {
                $(this).prev("i").css({ "background-image": "url(img/user2.png)" });
            });
            $(".name input").blur(function () {
                $(this).prev("i").css({ "background-image": "url(img/user1.png)" });
            });
            $(".password input").focus(function () {
                $(this).prev("i").css({ "background-image": "url(img/password2.png)" });
            });
            $(".password input").blur(function () {
                $(this).prev("i").css({ "background-image": "url(img/password1.png)" });
            });
        });
    </script>
</head>
<body>
    <div class="container">
        <div class="wrap">
            <header><em>Logo</em><span>叮当图书商城</span></header>
            <article>
                <section>
                    <aside>
                        <em>
                            <img src="~/Content/login/img/user.png">
                        </em>
                        <form action="" method="post">
                            @Html.AntiForgeryToken()
                            <p class="name"><i></i><input type="text" name="LoginName" class="userName" placeholder="请输入用户名" value="@ViewBag.LoginName"></p>
                            <p class="password"><i></i><input type="password" name="Pwd" class="pwd" placeholder="请输入密码" value="@ViewBag.Pwd"></p>
                            <button>登录</button>
                            <p class="remember"><input type="checkbox" name="remember">记住密码</p>
                            <p class="regist"><span>没有账号?</span><a href="@Url.Action("register")" target="_blank">立即注册</a></p>
                            <div class="clear"></div>
                        </form>
                    </aside>

                </section>
            </article>
            <footer>
                <ul>
                    <li><a href="#">联系我们</a></li>
                    <li><a href="#">关于我们</a></li>
                    <li><a href="#">人才招聘</a></li>
                    <li><a href="#">友情链接</a></li>
                    <li><a href="#">公司地址</a></li>
                    <li><a href="#">关注我们</a></li>
                </ul>
                <p></p>
            </footer>
        </div>
    </div>
    <script>
        $(function  () {
             @if (TempData["msg"] != null)
              {
                  <text>
                layer.msg("@TempData["msg"]", function () {
                });
                </text>
              }
        })

    </script>
    <script>
        if (self != self.top) { self.top.location.reload(); }
    </script>
</body>
</html>
